﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wp.BLL;
using Wp.DAL;

public partial class Controls_CenterNewsItem : System.Web.UI.UserControl
{
    public string CssClass { get; set; }
    public string OptionKey { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            string[] str = TblOptionManager.CreateInstant().GetOption(OptionKey).Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
            rpt.DataSource = str;
            rpt.DataBind();

        }
    }
    //protected void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e)
    //{
    //    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
    //    {
    //        Controls_CenterNewsChildItem ctrl = (Controls_CenterNewsChildItem)e.Item.FindControl("CenterNewsChildItem1");
    //        ctrl.TermTaxonomyTextId = e.Item.DataItem.ToString();
    //    }
    //}
}